package com.qf.springboot.thymeleaf.service.impl;

import com.qf.springboot.thymeleaf.mapper.UserMapper;
import com.qf.springboot.thymeleaf.pojo.User;
import com.qf.springboot.thymeleaf.service.IUserservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class IUserServiceImpl implements IUserservice {

    @Autowired
    private UserMapper userMapper;
    @Override
    public List<User> listUser() {
        List<User> users = userMapper.listUser();
        return users;
    }

    @Override
    public void saveUser(User user) {

    }

    @Override
    public void deleteUser(int id) {
        userMapper.deleteUser(id);
    }


}
